package com.lrkj.back.service.impl;

import cn.com.cbons.mamisay.parent.db.api.DBInterface;
import cn.com.cbons.mamisay.parent.exception.DBException;
import cn.com.cbons.mamisay.parent.service.base.ParentServiceImpl;
import com.lrkj.back.entity.KcChanpin;
import com.lrkj.back.mapper.KcChanpinMapper;
import com.lrkj.back.service.KcChanpinService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Transactional
@Service("kcChanpinService")
public class KcChanpinServiceImpl extends ParentServiceImpl<KcChanpin> implements KcChanpinService {

    @Autowired
    private KcChanpinMapper kcChanpinMapper;

    @Override
    protected DBInterface<KcChanpin> getDao() throws DBException {
        KcChanpinService kcChanpinService = null;
        // TODO Auto-generated method stub
        return kcChanpinMapper;
    }

    @Override
    public List<KcChanpin> findChanpin(Map<String, Object> map) {

        return kcChanpinMapper.findChanpin(map);

    }

}
